#import "OdysseyVortexCell.h"


@implementation OdysseyVortexCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setStillness:(OdysseyVortexModel *)stillness {
	_stillness = stillness;

	//: 配置cell的UI

	if (stillness.voyageEchoes.count > 0) {
		[self.yarnImageView sd_setImageWithURL:[NSURL URLWithString:stillness.voyageEchoes[0]] placeholderImage:nil];
	}

	if (stillness.curiousLuminescenceWander.count > 0) {
		[self.luminousHologramXenophobeImageView sd_setImageWithURL:[NSURL URLWithString:stillness.curiousLuminescenceWander[0]] placeholderImage:nil];
	}

}
//: kaleidoscope 的点击事件
- (void)action_2 {}

//: virtuousQuenchInfinite 的点击事件
- (void)action_3 {}

//: 设置curious的圆角
- (void)jeopardyReverieYearn:(UIImageView *)opulentXenonDazzle nebulaPrism:(CGFloat)zestRadiateApple {
	opulentXenonDazzle.layer.cornerRadius = zestRadiateApple;
	opulentXenonDazzle.layer.masksToBounds = YES;
}

//: 设置wondermentReverie的圆角
- (void)reverieKeenNirvana:(UIImageView *)zest glimmerYield:(CGFloat)dreamerKeenJourney {
	zest.layer.cornerRadius = dreamerKeenJourney;
	zest.layer.masksToBounds = YES;
}

- (UITextView *)glimpseWhisperTextView {
	if (!_glimpseWhisperTextView) {
	
        _glimpseWhisperTextView = [[UITextView alloc] initWithFrame:CGRectZero];
	}
	return _glimpseWhisperTextView;
}

- (void)brightenTranquilityUnwindConfigUI {

    //: 描述_0
    UILabel *flourishRipple = [[UILabel alloc] initWithFrame:CGRectZero];
    flourishRipple.text = @"label_0";
    flourishRipple.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
    flourishRipple.textColor = [UIColor colorWithRed:206/255.0 green:128/255.0 blue:7/255.0 alpha:0.6];
    flourishRipple.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = flourishRipple.numberOfLines = 1;
    NSInteger diligent = 1;
    if (diligent>47 && diligent < 2450) {
	    diligent = 20;
    }
    flourishRipple.numberOfLines = diligent;
    self.motionCuriousLabel = flourishRipple;
    [self.contentView addSubview:flourishRipple];
	[self.motionCuriousLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(118);
		make.height.mas_equalTo(99);
	}];


    //: 描述_1
    self.grumpySilhouetteIdealView = [UIView new];
    [self.contentView addSubview:self.grumpySilhouetteIdealView];
	[self.grumpySilhouetteIdealView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(77);
		make.height.mas_equalTo(50);
		make.top.equalTo(@(14));
	}];


    //: 描述_2
    UIButton *kaleidoscope = [[UIButton alloc] init];
    kaleidoscope.frame = CGRectMake(32, 0, 103, 81);
    UIImage *yearning = [UIImage imageNamed:@"images/icon_2.png"];
    if (yearning) {
	    [kaleidoscope setImage:yearning forState:UIControlStateNormal];
    }
    [kaleidoscope setTitle:@"button_2" forState:UIControlStateNormal];
    [kaleidoscope setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [kaleidoscope setTitleColor:[UIColor colorWithRed:117/255.0 green:181/255.0 blue:59/255.0 alpha:0.8] forState:UIControlStateNormal];
    [kaleidoscope setTitleColor:[UIColor colorWithRed:129/255.0 green:36/255.0 blue:132/255.0 alpha:0.9] forState:UIControlStateSelected];
    [kaleidoscope addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.gritXenonBtn = kaleidoscope;
    [self.contentView addSubview:kaleidoscope];


    //: 描述_3
    UIButton *virtuousQuenchInfinite = [UIButton new];
    UIImage *onyxDabble = [UIImage imageNamed:@"images/icon_3.png"];
    if (onyxDabble) {
	    [virtuousQuenchInfinite setImage:onyxDabble forState:UIControlStateNormal];
    }
    [virtuousQuenchInfinite setTitle:@"button_3" forState:UIControlStateNormal];
    [virtuousQuenchInfinite setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [virtuousQuenchInfinite setTitleColor:[UIColor colorWithRed:67/255.0 green:145/255.0 blue:141/255.0 alpha:0.9] forState:UIControlStateNormal];
    [virtuousQuenchInfinite setTitleColor:[UIColor colorWithRed:127/255.0 green:5/255.0 blue:35/255.0 alpha:0.6] forState:UIControlStateSelected];
    [virtuousQuenchInfinite addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    self.xenonLushFlourishBtn = virtuousQuenchInfinite;
    [self.contentView addSubview:virtuousQuenchInfinite];
	[self.xenonLushFlourishBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(37);
		make.height.mas_equalTo(170);
		make.top.equalTo(@(26));
	}];


    //: 描述_4
    self.cactusBalloonLeapfrogView = [UIView new];
    [self.contentView addSubview:self.cactusBalloonLeapfrogView];
	[self.cactusBalloonLeapfrogView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(157);
		make.height.mas_equalTo(81);
	}];


    //: 描述_5
    self.transformTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    self.transformTextField.size = CGSizeMake(135, 185);
    self.transformTextField.left = 18;
    self.transformTextField.top = 41;
    [self.contentView addSubview:self.transformTextField];


    //: 描述_6
    UIImageView *curious = [[UIImageView alloc] initWithFrame:CGRectZero];
    curious.contentMode = UIViewContentModeScaleAspectFill;
    curious.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self jeopardyReverieYearn:curious nebulaPrism:0];
    UIImage *virtuousQuestWhimsy = [UIImage imageNamed:@"images/image_6.png"];
    if (virtuousQuestWhimsy) {
	    curious.image = virtuousQuestWhimsy;
    }
    self.yarnImageView = curious;
    [self.contentView addSubview:curious];
	[self.yarnImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(119);
		make.height.mas_equalTo(52);
		make.top.equalTo(@(24));
		make.bottom.equalTo(@(12));
	}];


    //: 描述_7
    UIImageView *wondermentReverie = [[UIImageView alloc] initWithFrame:CGRectZero];
    wondermentReverie.contentMode = UIViewContentModeScaleAspectFill;
    wondermentReverie.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self reverieKeenNirvana:wondermentReverie glimmerYield:0];
    wondermentReverie.frame = CGRectMake(19, 44, 104, 97);
    UIImage *elevateFable = [UIImage imageNamed:@"images/image_7.png"];
    if (elevateFable) {
	    wondermentReverie.image = elevateFable;
    }
    self.luminousHologramXenophobeImageView = wondermentReverie;
    [self.contentView addSubview:wondermentReverie];

	//: 描述_8
	[self.contentView addSubview:self.glimpseWhisperTextView];
	[self.glimpseWhisperTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(130);
		make.height.mas_equalTo(73);
		make.top.equalTo(@(29));
	}];
}


@end
